package com.job.ming.Zuoye0709;

import java.util.FormatFlagsConversionMismatchException;
import java.util.Scanner;

/**
 * @author Yangmingyu
 * @version 1.0
 * @since 2022-07-10 16:48:05
 */
public class Sanjiao {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] a=new  int [n][n];
        for (int i=0;i<a.length;i++){
            for (int j=0;j<=i;j++){
             if (j==i||j==0){
                 a[i][j]=1;
             }else {
                 a[i][j]=a[i-1][j-1]+a[i-1][j];
             }
            }
        }
        for (int i=0;i<n;i++) {
            for (int j = 0; j <=i; j++) {
                    System.out.print(a[i][j]);
            }
            System.out.println();
        }
    }
}